package sv.gob.mh.dgii.model;

// Generated Aug 8, 2008 3:09:03 PM by Hibernate Tools 3.2.0.CR1

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * TbRubroConceptual generated by hbm2java
 */
@Entity
@Table(name = "TB_RUBRO_CONCEPTUAL", schema = "CATALOGOS")
public class TbRubroConceptual implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3584697461964400029L;
	
	private Integer crubroConceptual;
	private String drubroConceptual;
	private String cusuario;
	private Date fhingreso;
	private Date fhmodificacion;
	private Set<EdRubroConceptual> edRubroConceptuals = new HashSet<EdRubroConceptual>(
			0);

	public TbRubroConceptual() {
	}

	public TbRubroConceptual(Integer crubroConceptual) {
		this.crubroConceptual = crubroConceptual;
	}

	public TbRubroConceptual(Integer crubroConceptual, String drubroConceptual,
			String cusuario, Date fhingreso, Date fhmodificacion,
			Set<EdRubroConceptual> edRubroConceptuals) {
		this.crubroConceptual = crubroConceptual;
		this.drubroConceptual = drubroConceptual;
		this.cusuario = cusuario;
		this.fhingreso = fhingreso;
		this.fhmodificacion = fhmodificacion;
		this.edRubroConceptuals = edRubroConceptuals;
	}

	@Id
	@Column(name = "C_RUBRO_CONCEPTUAL", unique = true, nullable = false, precision = 4, scale = 0)
	public Integer getCrubroConceptual() {
		return this.crubroConceptual;
	}

	public void setCrubroConceptual(Integer crubroConceptual) {
		this.crubroConceptual = crubroConceptual;
	}

	@Column(name = "D_RUBRO_CONCEPTUAL", length = 50)
	public String getDrubroConceptual() {
		return this.drubroConceptual;
	}

	public void setDrubroConceptual(String drubroConceptual) {
		this.drubroConceptual = drubroConceptual;
	}

	@Column(name = "C_USUARIO", length = 30)
	public String getCusuario() {
		return this.cusuario;
	}

	public void setCusuario(String cusuario) {
		this.cusuario = cusuario;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_INGRESO", length = 7)
	public Date getFhingreso() {
		return this.fhingreso;
	}

	public void setFhingreso(Date fhingreso) {
		this.fhingreso = fhingreso;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "FH_MODIFICACION", length = 7)
	public Date getFhmodificacion() {
		return this.fhmodificacion;
	}

	public void setFhmodificacion(Date fhmodificacion) {
		this.fhmodificacion = fhmodificacion;
	}

	@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.LAZY, mappedBy = "tbRubroConceptual")
	public Set<EdRubroConceptual> getEdRubroConceptuals() {
		return this.edRubroConceptuals;
	}

	public void setEdRubroConceptuals(Set<EdRubroConceptual> edRubroConceptuals) {
		this.edRubroConceptuals = edRubroConceptuals;
	}

}
